package temp;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.zsgl.dao.HotelAddressDAO;
import com.zsgl.dao.HotelDAO;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath*:META-INF/spring/applicationContext.xml")
public class QQQ {

	@Autowired
	HotelDAO hotelDAO;
	
	@Autowired
	HotelAddressDAO hotelAddressDAO;
	
	@Test
	public void test() {
		Assert.assertNotNull(hotelDAO);
		Assert.assertNotNull(hotelAddressDAO);
		System.out.println(hotelDAO);
		System.out.println(hotelAddressDAO);
	}
	
}
